modifier_livelihood_improve = class({})
require('abilities/modifiers/common_modifiers')
function modifier_livelihood_improve:OnCreated()
	self.max_food = self:GetAbility():GetSpecialValueFor("max_food")
	self.gold_pertensecond = self:GetAbility():GetSpecialValueFor("gold_pertensecond")
	common_modifiers:RegisterCommonModifier(self,false)

	local playerid = self:GetAbility():GetCaster():GetPlayerOwnerID()
	resource.player_max_food[playerid] = resource.player_max_food[playerid] + self.max_food

	self:StartIntervalThink(10)
end

function modifier_livelihood_improve:OnIntervalThink()
	PlayerResource:ModifyGold(self:GetAbility():GetCaster(), self.gold_pertensecond, false, DOTA_ModifyGold_GameTick)
	self:StartIntervalThink(10)
end